﻿using System;

namespace HslCommunication.Reflection
{
	/// <summary>
	/// 对应redis的一个哈希信息的内容
	/// </summary>
	// Token: 0x02000113 RID: 275
	[AttributeUsage(AttributeTargets.Property, AllowMultiple = false)]
	public class HslRedisHashFieldAttribute : Attribute
	{
		/// <summary>
		/// 哈希键值的名称
		/// </summary>
		// Token: 0x17000520 RID: 1312
		// (get) Token: 0x060017D1 RID: 6097 RVA: 0x00078A40 File Offset: 0x00076C40
		// (set) Token: 0x060017D2 RID: 6098 RVA: 0x00078A48 File Offset: 0x00076C48
		public string HaskKey { get; set; }

		/// <summary>
		/// 当前的哈希域名称
		/// </summary>
		// Token: 0x17000521 RID: 1313
		// (get) Token: 0x060017D3 RID: 6099 RVA: 0x00078A51 File Offset: 0x00076C51
		// (set) Token: 0x060017D4 RID: 6100 RVA: 0x00078A59 File Offset: 0x00076C59
		public string Field { get; set; }

		/// <summary>
		/// 根据键名来读取写入当前的哈希的单个信息
		/// </summary>
		/// <param name="hashKey">哈希键名</param>
		/// <param name="filed">哈希域名称</param>
		// Token: 0x060017D5 RID: 6101 RVA: 0x00078A62 File Offset: 0x00076C62
		public HslRedisHashFieldAttribute(string hashKey, string filed)
		{
			this.HaskKey = hashKey;
			this.Field = filed;
		}
	}
}
